﻿using Azure.Core;
using MediatR;
using System.ComponentModel.DataAnnotations;
using Traceability.Common.Dtos;

namespace Traceability.Bais.API.Appliction.Command.Permissions
{
    public class PermissionCreateCommon: IRequest<Result>
    {
        /// <summary>
        /// 权限Id
        /// </summary> 
        public int PermissionId { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; }
        /// <summary>
        /// 链接
        /// </summary>
        public string URL { get; set; }
        /// <summary>
        /// 父级Id
        /// </summary>
        public int PerantId { get; set; }

        /// <summary>
        /// 创建者Id
        /// </summary>
        public int createdOwnerId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// 更新者Id
        /// </summary>
        public int? UpdateOwnerId { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 删除者Id
        /// </summary>
        public int? DeleteOwnerId { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
    }
}
